package com.heshida.controller;

import com.heshida.po.Food;
import com.heshida.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/BannerController")
public class BannerController {

    @Autowired
    private BannerService bannerService;

    @RequestMapping("/findBannerFood")
    public Food findBannerFood(){
        return bannerService.findBannerFood();
    }
}
